package behavior.chain;

/**
 * @author dali
 * @date 2021-07-29 13:17
 * @Description
 */

public class CEOHandler implements Handler {
    private Handler handler;

    @Override
    public void setNextHandler(Handler handler) {
        this.handler = handler;
    }

    @Override
    public boolean handler(int day) {
        if (day < 15) {
            System.out.println("直系领导批了");
            return true;
        }
        System.out.println("CEO寄语：不想干可以走人了！");
        return false;
    }
}
